package com.foreknow.moxi.service;

import com.foreknow.moxi.model.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
//注解主要用来标记这个接口为作一个映射接口
@Mapper
public interface AdminService {
    @Select("select * from admin")
    Admin findByNameAndPassword(Admin admin);

    List<Admin> findByAdminWithPage(Admin admin, int start, int end);

    int insert(Admin admin);

    int updateStateById(int id);

    int deleteById(int id);
}
